<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		var arr = [1,2,3,4,5];
		var  arr2=[];
		
		for (var i=0;i<arr.length;i++) {
			arr2[i] = arr[i];
		}
		arr2[0]="哈哈";
		console.log(arr2)
		console.log(arr)
	</script>
</html>
